const express = require('express');
const bodyParser = require('body-parser');
const server = express();

server.listen(8080, () => {
    console.log('服务启动成功!');
});

// 解析post请求
server.use(bodyParser.urlencoded({}));

// req.query GET数据
// req/.body POST数据

server.use('/', (req, res) => {
    // console.log(req.query);
    console.log(req.body);
});